from django.urls import path, include
from rest_framework.routers import DefaultRouter
from .views import (
    CityViewSet, DatacenterViewSet, HostViewSet,
    PasswordHistoryViewSet, HostStatisticsViewSet
)

router = DefaultRouter()
router.register(r'cities', CityViewSet)
router.register(r'datacenters', DatacenterViewSet)
router.register(r'hosts', HostViewSet)
router.register(r'password-history', PasswordHistoryViewSet)
router.register(r'statistics', HostStatisticsViewSet)

urlpatterns = [
    path('', include(router.urls)),
]